package cn.yunhe.service.impl;

import cn.yunhe.dao.ISysLogDao;
import cn.yunhe.pojo.SysLog;
import cn.yunhe.service.ISysLogService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.UUID;

@Service
public class SysLogServiceImpl implements ISysLogService {

    @Autowired
    ISysLogDao sysLogDao;

    public void insertLog(SysLog sysLog) {
        sysLog.setId(UUID.randomUUID().toString().replace("-", ""));
        sysLogDao.insertLog(sysLog);
    }
}
